﻿// MyTestPropPage.cpp : CMyTestPropPage 属性页类的实现。

#include "pch.h"
#include "framework.h"
#include "MyTest.h"
#include "MyTestPropPage.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

IMPLEMENT_DYNCREATE(CMyTestPropPage, COlePropertyPage)

// 消息映射

BEGIN_MESSAGE_MAP(CMyTestPropPage, COlePropertyPage)
END_MESSAGE_MAP()

// 初始化类工厂和 guid

IMPLEMENT_OLECREATE_EX(CMyTestPropPage, "MFCACTIVEXCONT.MyTestPropPage.1",
	0x49c8d93d,0x4edf,0x4df7,0xa7,0x8e,0x2e,0x67,0x44,0x16,0x02,0xa1)

// CMyTestPropPage::CMyTestPropPageFactory::UpdateRegistry -
// 添加或移除 CMyTestPropPage 的系统注册表项

BOOL CMyTestPropPage::CMyTestPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_MYTEST_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, nullptr);
}

// CMyTestPropPage::CMyTestPropPage - 构造函数

CMyTestPropPage::CMyTestPropPage() :
	COlePropertyPage(IDD, IDS_MYTEST_PPG_CAPTION)
{
}

// CMyTestPropPage::DoDataExchange - 在页和属性间移动数据

void CMyTestPropPage::DoDataExchange(CDataExchange* pDX)
{
	DDP_PostProcessing(pDX);
}

// CMyTestPropPage 消息处理程序
